'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
<<<<<<< HEAD
  router.get('/api/type', controller.home.index);
  router.get("/api/getList" , controller.post.index);
  router.get("/api/getDetail" , controller.details.getHouseDetail);
  // router.resources('posts', "/api/posts",controller.post);
=======
  router.get('/api', controller.home.index);
  // router.get("/api/posts" , controller.post.index);
  router.get("/api/getHouseDetail" , controller.details.getHouseDetail);
  router.resources('posts', "/api/posts",controller.post);
>>>>>>> 732deab553a83bd23ce5ab1d416e1b615a719bfb
};
